package org.grottarossa.data;

import org.grottarossa.data.exception.DataSourceException;
import org.grottarossa.data.exception.QueryException;
import org.grottarossa.driver.ECMBuilderTemplate;


import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;

public class QueryFilter {

	private static Hashtable<String, List<Object>> m_filters;

	public QueryFilter() {
		m_filters = new Hashtable<String, List<Object>>();
	}

	public List<Object> addFilter(String name)
	{
		if(m_filters.containsKey(name))
		{
			return m_filters.get(name);
		}
		else
		{
			ArrayList<Object> vals = new ArrayList<Object>();
			m_filters.put(name, vals);
			return vals;
		}
	}

	public List<Object> getFilter(String name) {
		return m_filters.get(name);
	}
}
